package com.company.cloud.club.modules.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.company.cloud.club.modules.db.domain.Praise;

/**
 * *****************************************************************************
 * <p>
 * 功能名           ：com.qxzychina.vms.service
 * 系统名           ：
 * <p>
 * *****************************************************************************
 * Modification History
 * <p>
 * Date        Name                    Reason for Change
 * ----------  ----------------------  -----------------------------------------
 * 2020/7/18     zhangxu                 Created
 */
public interface PraiseService extends IService<Praise> {

    Praise getByCommentIdAndUserId(String commentId, Integer userId);

    Integer countByCommentId(String parentId);

    void deletePraise(String id);

    void addPraise(String commentId);

    void subPraise(String commentId);

    Boolean isPraise(String commentId, Integer userId);

}
